<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script src="${RESOURCE}/tha/include/AC_RunActiveContent.js" type="text/javascript"></script>

<script language=JavaScript>

<!--

function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}


// Declaring required variables

var digits = "0123456789";

// non-digit characters which are allowed in phone numbers

var phoneNumberDelimiters = "()- ";


// characters which are allowed in international phone numbers

// (a leading + is OK)

var validWorldPhoneChars = phoneNumberDelimiters + "+";



// Minimum no of digits in an international phone no.

var minDigitsInIPhoneNumber = 10;



function isInteger(s)

{   var i;

    for (i = 0; i < s.length; i++)

    {   

        // Check that current character is number.

        var c = s.charAt(i);

        if (((c < "0") || (c > "9"))) return false;

    }



    // All characters are numbers.

    return true;

}



function stripCharsInBag(s, bag)

{   var i;

    var returnString = "";



    // Search through string's characters one by one.

    // If character is not in bag, append to returnString.

    for (i = 0; i < s.length; i++)

    {   

        // Check that current character isn't whitespace.

        var c = s.charAt(i);

        if (bag.indexOf(c) == -1) returnString += c;

    }



    return returnString;

}



function checkInternationalPhone(strPhone){

	s = stripCharsInBag(strPhone,validWorldPhoneChars);

	return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);

}



function ValidateForm(){

	var Phone=document.form1.inputUserName;



	document.form1.submit();

 }



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



function alertChgMobileNumb(){

  var format = /^[0-9]{9}$/;

   

  if(format.test(document.form1.inputUserName.value)) { 

			alert("ตั้งแต่วันที่ 1 กันยายน เป็นต้นไป รหัสผู้ใช้ 9 หลัก จะเปลี่ยนเป็น 10 หลัก โดยใส่ 08 แทน 0 ตัวหน้า \nในครั้งต่อไปกรุณาใช้รหัสผู้ใช้ 10 หลักในการใช้บริการผ่านเว็บ.");

	}



	document.form1.submit();

}

//-->

</script> 

<script language="JavaScript">



function MM_openBrWindow(theURL,winName,features) { //v2.0



  window.open(theURL,winName,features);



}







function gotoIndex(){



  window.location = "/bp3/bin/DpromptIndex";  



}







function gotoWelcome(){



   window.location = "/bp3/bin/Dspc/DpromptWelcome";



}



</script>

</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway"><img src="images/clear.gif" width="1" height="1"><a href="/bp3/bin/DpromptIndex" class="link2">Web Services</a> > <a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> > Modify Your Personal Information</a></div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
						
							<table width="650" border="0" cellspacing="0" cellpadding="0">
  
                                  <tr> 
                                    <td height="40" class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
                                        <tr> 
                                          <td class="textnormal">Hello! <span class="textnormal_blue"><strong>จิราพรรณ ชอบใหญ่</strong></span> Welcome to Happy Web Services!</td>
                                          <td align="right"> <table height="30" border="0" align="right" cellpadding="0" cellspacing="0">
                                            <tr>
                                              <!--<td align="center" valign="middle"><a href="/bp3/bin/Dspc/DpromptWelcome?changeLang=T"><img src="${RESOURCE}/eng/images/en_flag.gif" width="30" height="16" border="0"></a></td>
                                              <td width="10" align="center"><img src="${RESOURCE}/eng/images/14_webservice_breaker.gif" width="3" height="27"></td>-->
                                              <td align="center"><a href="/bp3/bin/DpromptIndex"><img src="${RESOURCE}/eng/images/14_webservice_logoff.gif" width="108" height="29" border="0"></a></td>
                                            </tr>
                                          </table>            </td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                
                                  <tr> 
                                    <td height="1" bgcolor="#B4B4B4"></td>
                                  </tr>
                                  <tr> 
                                    <td class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
                                        <tr> 
                                          <td align="right" valign="top" class="textnormalred">This is the 10th time you've visited Happy.<br>
                                          The last time you logged in was on: 21/02/2011 at  10:56:29 <br>
                                          <span class="textnormal"><img src="${RESOURCE}/eng/images/bullet_yellow.gif" width="8" height="8"> <a href="/bp3/bin/Dspc/DpromptChangeUserInfoForm" class="textnormal_blue">Click to modify your personal information</a></span></td>
                                        </tr>
                                      </table></td>
                                  </tr> 
                                
                                  <tr> 
                                
                                    <td height="40"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                        <tr> 
                                          <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
                                          <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle15.gif" width="350" height="22"></td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                  <tr> 
                                    <td height="15" align="center" valign="bottom">&nbsp;</td>
                                  </tr>
                                  <tr> 
                                    <td height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
                                
                                        <td width="101"><a href="/bp3/bin/Dspc/DpromptChangeUserInfoForm"><img src="${RESOURCE}/eng/images/14_editprofile_tab01_i.gif" alt="แก้ไขข้อมูลส่วนตัว" width="160" height="43" border="0"></a></td>
                                
                                        <td width="160"><a href="/bp3/bin/DpromptChngPassword"><img src="${RESOURCE}/eng/images/14_editprofile_tab02_i.gif" alt="กำหนดรหัสผ่านใหม่" width="160" height="43" border="0"></a></td>
                                
                                        <td width="160"><a href=""><img src="${RESOURCE}/eng/images/14_editprofile_tab03_o.gif" alt="ยกเลิกการใช้บริการผ่านเว็บ" width="161" height="43" border="0"></a><a href="file:///C|/Documents%20and%20Settings/nokhoo/My%20Documents/TemplateThai/14_webservice_27.php"></a></td>
                                
                                        <td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                  <tr> 
                                    <td height="15" align="left"><br>
                                      <span class="textnormal_bold">Canceling Your Web Services</span><br>
                                      <span class="textnormal">The Happy mobile number that you would like to cancel this service is      </span><br><br>
                                
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td><form method="post" action="/bp3/bin/Dspc/DpromptDecreaseMobile" name="name1">
                                              <div align="center">
                                                <table width="70%" border="0" cellspacing="1" cellpadding="0">
                                                <input type="hidden" name="inputActive" value="0">
                                                  <tr>
                                                    <td width="45%" height="30" class="textnormal_bold"><div align="center"><strong>Your Happy Mobile Number</strong>: </div></td>
                                                    <td width="55%" height="30" class="textnormalred"><div align="left">
                                                      08-0450-9383
                                                    </div></td>
                                                  </tr>
                                                  <tr>
                                                    <td width="45%" height="30" class="textnormal_bold"><div align="center"><strong>Date of Registration</strong>:</div></td>
                                                    <td width="55%" height="30" class="textnormalred"><div align="left">
                                                      15/02/2554  18:25:16
                                                    </div></td>
                                                  </tr>
                                                </table>
                                                </div>
                                              <br>
                                
                                 <script language="JavaScript" type="text/JavaScript">
                                 
                                function doSubmit(){
                                
                                 //if (checkCheckBoxes()){
                                
                                     if  (confirm('Please confirm your cancellation of the online service.') )
                                
                                       document.name1.submit();
                                
                                  //}
                                
                                }
                                
                                function setVal() {
                                
                                var f =document.name1[0];
                                
                                 result="";
                                
                                 for (i=0;i<f.elements.length;i++) {
                                
                                 elem=f.elements[i];
                                
                                 elemName=elem.name;
                                
                                 alert(elemName);
                                
                                 }
                                
                                 }
                                
                                /*
                                
                                function checkCheckBoxes() {
                                
                                var f =document.name1[0];
                                
                                  // if(document.getElementsByName('inputType')[0].checked == true )  {       
                                
                                //alert(document.getElementsByName('check')[0].checked);
                                
                                    if (document.getElementsByName('check')[0].checked == false) 
                                
                                    {
                                
                                        //alert ("กรุณาเลือกหมายเลขโทรศัพท์มือถือที่ท่านต้องการยกเลิกการใช้งานด้วยค่ะ");
                                
                                              alert ("Please select the telephone number which you want to cancel.");
                                
                                        return false;
                                
                                    } else { 	
                                
                                        return true;
                                    }
                                
                                }
                                
                                */
                                
                                function checkCheckBoxes(){  
                                
                                  var checkObject = document.getElementsByName('inputActive');
                                
                                  var result = false;
                                
                                  if (checkObject.name != null){
                                
                                     if (checkObject.checked){
                                
                                       result = true;
                                
                                     }
                                
                                  }else{  
                                
                                     for (var i=0; i<checkObject.length; i++){
                                
                                        if (checkObject[i].checked){
                                
                                          result = true;
                                
                                        }
                                
                                     }
                                
                                  }
                                
                                
                                  //alert("result="+result);
                                
                                  if(result==false){
                                
                                   //alert ("กรุณาเลือกหมายเลขโทรศัพท์มือถือที่ท่านต้องการยกเลิกการใช้งานด้วยค่ะ");
                                
                                   alert("Please select the telephone number which you want to cancel.");
                                
                                  }
                                
                                  return result;
                                
                                }
                                
                                </script>	
                                
                                       <br>
                                      <br> <table width="250" border="0" align="center" cellpadding="5" cellspacing="0">
                                        <tr align="center" valign="top"> 
                                          <td><a href="javascript:doSubmit()"><img src="${RESOURCE}/eng/images/14_webservice_submit.gif" width="58" height="23" border="0"></a></td>
                                          <td><a href="javascript:gotoWelcome()"><img src="${RESOURCE}/eng/images/14_webservice_cancel.gif" width="58" height="23" border="0"></a></td>
                                        </tr>
                                      </table>
                                            </form></td>
                                        </tr>
                                      </table> <br> 
                                      <p><br>
                                        <br>
                                        <br>
                                     </p></td>
                                  </tr>
                                    <tr>
                                        <td height="15" align="left" class="textnormal"><img
                                            src="${RESOURCE}/eng/images/14_webservice_remark.gif"
                                            width="95" height="33"><br>
                                            <table width="95%" border="0" align="center" cellpadding="0"
                                                cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <span class="textnormal">Please note that your data and all scheduled SMS messages will be cancelled if you choose to proceed.<br>					</td>
                                                </tr>
                                            </table>		</td>
                                    </tr>
                                  <tr> 
                                    <td height="15" align="center"><br></td>
                                  </tr>
                                  <tr> 
                                    <td height="15" align="left"><a href="/bp3/bin/Dspc/DpromptWelcome"><img src="${RESOURCE}/eng/images/14_webservice_main.gif" border="0"></a></td>
                                  </tr>
                                  <tr> 
                                    <td height="15" align="center"><br></td>
                                  </tr>
                                </table>
						
						</td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
